package com.zw.yzk.kabu.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zhanwei on 2017/3/5.
 */

public class GoodsDetailsModel {
    // 商品id
    private int goodsId;
    // 隶属商铺id
    private int shopId;
    // 商品名称
    private String goodsName;
    // 商铺名称
    private String shopName;
    // 店铺主人名称
    private String shopOwner;
    // 店铺主人签名
    private String shopOwnerSign;
    // 店铺主人头像
    private String shopOwnerHead;
    //店铺主人id
    private int shopOwnerId;
    // 运费
    private float freight;
    // 详情介绍
    private String introduce;
    // 封面图片地址
    private String coverImage;
    // 是否可以购买， 0-否 1-是
    private boolean isBuyable;
    // 总收藏数
    private int totalCollected;
    // 是否被收藏，0-否 1-是
    private boolean isCollected;
    // 总商品类型
    private int totalProductProperty;
    // 库存
    private List<Sku> skuList;
    // 轮播图
    private List<Banner> bannerList;
    // 商品属性列表
    private List<Property> propertyList;
    //商品详情图片列表
    private List<IntroduceImage> introduceImageList;

    public int getShopOwnerId() {
        return shopOwnerId;
    }

    public void setShopOwnerId(int shopOwnerId) {
        this.shopOwnerId = shopOwnerId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopOwner() {
        return shopOwner;
    }

    public void setShopOwner(String shopOwner) {
        this.shopOwner = shopOwner;
    }

    public String getShopOwnerSign() {
        return shopOwnerSign;
    }

    public void setShopOwnerSign(String shopOwnerSign) {
        this.shopOwnerSign = shopOwnerSign;
    }

    public String getShopOwnerHead() {
        return shopOwnerHead;
    }

    public void setShopOwnerHead(String shopOwnerHead) {
        this.shopOwnerHead = shopOwnerHead;
    }

    public float getFreight() {
        return freight;
    }

    public void setFreight(float freight) {
        this.freight = freight;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public boolean getIsBuyable() {
        return isBuyable;
    }

    public void setIsBuyable(boolean isBuyable) {
        this.isBuyable = isBuyable;
    }

    public int getTotalCollected() {
        return totalCollected;
    }

    public void setTotalCollected(int totalCollected) {
        this.totalCollected = totalCollected;
    }

    public boolean getIsCollected() {
        return isCollected;
    }

    public void setIsCollected(boolean isCollected) {
        this.isCollected = isCollected;
    }

    public int getTotalProductProperty() {
        return totalProductProperty;
    }

    public void setTotalProductProperty(int totalProductProperty) {
        this.totalProductProperty = totalProductProperty;
    }

    public List<Sku> getSkuList() {
        return skuList;
    }

    public void setSkuList(List<Sku> skuList) {
        this.skuList = skuList;
    }

    public List<Banner> getBannerList() {
        return bannerList;
    }

    public void setBannerList(List<Banner> bannerList) {
        this.bannerList = bannerList;
    }

    public List<Property> getPropertyList() {
        return propertyList;
    }

    public void setPropertyList(List<Property> propertyList) {
        this.propertyList = propertyList;
    }

    public List<IntroduceImage> getIntroduceImageList() {
        return introduceImageList;
    }

    public void setIntroduceImageList(List<IntroduceImage> introduceImageList) {
        this.introduceImageList = introduceImageList;
    }

    public static class Sku {
        //库存
        private int stock;
        // 型号组合id，productid_propertyid:modelid_...组合，需要酱每个属性里面的每一个型号都组合起来
        private String skuId;
        // 优惠价
        private float discountedPrice;
        // 原价
        private float originalPrice;
        //propertyId
        private int propertyId;
        //真实价格
        private float price;

        public float getPrice() {
            return price;
        }

        public void setPrice(float price) {
            this.price = price;
        }

        public int getPropertyId() {
            return propertyId;
        }

        public void setPropertyId(int propertyId) {
            this.propertyId = propertyId;
        }

        public int getStock() {
            return stock;
        }

        public void setStock(int stock) {
            this.stock = stock;
        }

        public String getSkuId() {
            return skuId;
        }

        public void setSkuId(String skuId) {
            this.skuId = skuId;
        }

        public float getDiscountedPrice() {
            return discountedPrice;
        }

        public void setDiscountedPrice(float discountedPrice) {
            this.discountedPrice = discountedPrice;
        }

        public float getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(float originalPrice) {
            this.originalPrice = originalPrice;
        }
    }

    public static class Banner implements Serializable {
        private static final long serialVersionUID = 3788235508110937147L;
        //bannerId
        private int bannerId;
        // 展示顺序
        private String order;
        // 图片
        private String image;

        public int getBannerId() {
            return bannerId;
        }

        public void setBannerId(int bannerId) {
            this.bannerId = bannerId;
        }

        public String getOrder() {
            return order;
        }

        public void setOrder(String order) {
            this.order = order;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }
    }

    public static class Property {
        // 属性id
        private int propertyId;
        // 属性
        private String content;
        // 子属性列表
        private List<Model> modelList;

        public int getPropertyId() {
            return propertyId;
        }

        public void setPropertyId(int propertyId) {
            this.propertyId = propertyId;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public List<Model> getModelList() {
            return modelList;
        }

        public void setModelList(List<Model> modelList) {
            this.modelList = modelList;
        }
    }

    public static class Model {
        // 属性id
        private int id;
        // 属性
        private String content;
        // Propertyid
        private int propertyId;
        // 图片展示
        private String image;
        // 展示顺序
        private String order;
        //是否选中
        private boolean selected;

        public boolean isSelected() {
            return selected;
        }

        public void setSelected(boolean selected) {
            this.selected = selected;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public int getPropertyId() {
            return propertyId;
        }

        public void setPropertyId(int propertyId) {
            this.propertyId = propertyId;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getOrder() {
            return order;
        }

        public void setOrder(String order) {
            this.order = order;
        }
    }

    public static class IntroduceImage {
        //详情图片
        private String image;
        private int imageId;

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public int getImageId() {
            return imageId;
        }

        public void setImageId(int imageId) {
            this.imageId = imageId;
        }
    }

}
